home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / game / patch / WHDIGamesH-M.lzh / games / JetSetWilly2.lha / JSW2Install / Install_JSW2 < prev    next >
Text File  |  1998-02-21  |  5KB  |  254 lines

  1. ;
  2. ;$VER: Jet Set Willy II HD Installer script v2.00 (c) 1997-98 John Girvin
  3. ;
  4.  
  5. (welcome "Welcome to the Jet Set Willy II Hard Drive Installer")
  6. (set @app-name "Jet Set Willy II HD")
  7. (set #JROOTDIR "DH0:")
  8. (set #JDESTDIR #JROOTDIR)
  9. (set #JDATDIR  #JROOTDIR)
  10. (set #JDEFTRAINERS 4)
  11. (set #JUSEGUI 0)
  12. (set #JSTARTGLASSES 162)
  13.  
  14. (if    (<> @user-level 2)
  15.     (abort "You must select 'Expert' user level")
  16. )
  17.  
  18. (if    (< @installer-version 2818051)
  19.     (abort "This package requires at least version 43.3 of the Installer program")
  20. )
  21.  
  22. (message "\n\nWelcome to the Jet Set Willy II Hard Drive Installer\n"
  23.          "(c) 1997-98 John Girvin\n\n"
  24.          "Please read the documentation thoroughly before"
  25.          " attempting to use this installer!\n\n"
  26.          "This is version 2.00\n\n"
  27.          "Click 'Proceed' to begin."
  28. )
  29.  
  30.  
  31. ;
  32. ; Generate names of installation directories
  33. ;
  34. (set #JROOTDIR
  35.     (askdir
  36.         (prompt "Where would you like Jet Set Willy II installed?\n"
  37.                 "(a new drawer called 'Jet_Set_Willy_II' will be created here)"
  38.         )
  39.         (help @askdir-help)
  40.         (default #JROOTDIR)
  41.     )
  42. )
  43. (set #JDESTDIR (tackon #JROOTDIR "Jet_Set_Willy_II/"))
  44. (set #JDATDIR (tackon #JDESTDIR "data/"))
  45. (set @default-dest #JDESTDIR)
  46. (set @execute-dir #JDESTDIR)
  47.  
  48.  
  49. (set #JUSEGUI
  50.     (askchoice
  51.         (prompt "Do you want the cheat GUI to appear every time you load Jet Set Willy II?\n"
  52.                 "(this may be changed later by editing the tooltypes of the 'Jet_Set_Willy_II' program)"
  53.         )
  54.         (help @askchoice-help)
  55.         (choices "Yes" "No")
  56.         (default #JUSEGUI)
  57.     )
  58. )
  59.  
  60.  
  61. (set #JDEFTRAINERS
  62.     (askoptions
  63.         (prompt "Please select the default options to use:\n"
  64.                 "(these may be changed later by either"
  65.                 " editing the tooltypes of the 'Jet_Set_Willy_II'"
  66.                 " program or using the cheat GUI)"
  67.         )
  68.         (help @askoptions-help)
  69.         (choices "Infinite lives" "Invulnerability" "Use saved game")
  70.         (default #JDEFTRAINERS)
  71.     )
  72. )
  73.  
  74.  
  75. (set #JSTARTGLASSES
  76.     (asknumber
  77.         (prompt "Please enter the default number of glasses"
  78.                 " left to be collected at the start of each game:\n"
  79.                 "(this may be changed later by either"
  80.                 " editing the tooltypes of the 'Jet_Set_Willy_II'"
  81.                 " program or using the cheat GUI)"
  82.         )
  83.         (help @asknumber-help)
  84.         (range 0 162)
  85.         (default #JSTARTGLASSES)
  86.     )
  87. )
  88.  
  89. ;
  90. ; Create installation directories
  91. ;
  92. (makedir #JDESTDIR
  93.     (prompt "I will now create the directory '" #JDESTDIR "'")
  94.     (help @makedir-help)
  95.     (infos)
  96.     (confirm)
  97. )
  98.  
  99. (makedir #JDATDIR
  100.     (prompt "I will now create the directory '" #JDATDIR "'")
  101.     (help @makedir-help)
  102.     (confirm)
  103. )
  104.  
  105.  
  106. ;
  107. ; Copy WHDload and extractor slave to destination
  108. ;
  109. (copyfiles
  110.     (prompt "Copying WHDLoad program")
  111.     (help @copyfiles-help)
  112.     (source "WHDLoad")
  113.     (dest #JDESTDIR)
  114.     (nogauge)
  115.     (noposition)
  116.     (optional fail force)
  117. )
  118.  
  119. (copyfiles
  120.     (prompt "Copying data extractor slave")
  121.     (help @copyfiles-help)
  122.     (source "JSWMakeDat")
  123.     (dest #JDESTDIR)
  124.     (nogauge)
  125.     (noposition)
  126.     (optional fail force)
  127. )
  128.  
  129. ;
  130. ; Create data files from game disk
  131. ;
  132. (message "\n\n\nPlease insert your Jet Set Willy II game disk in drive DF0:\n\n"
  133.             "*** WARNING ***\n\n"
  134.             "Multitasking will be disabled while the game files"
  135.             " are being created. After inserting the disk, please"
  136.             " ensure that all disk and network activity has finished"
  137.             " before clicking 'Proceed'.\n\n"
  138.             "Click 'Proceed' when ready."
  139. )
  140.  
  141.  
  142. (working
  143.     (cat "Creating game data files in '" #JDATDIR "'\n\n"
  144.             "*** Multitasking is disabled. DON`T PANIC! ***"
  145.     )
  146. )
  147.  
  148.  
  149. (run (cat (tackon #JDESTDIR
  150.                   "WHDLoad SLAVE=JSWMakeDat NOVBRMOVE NOCACHE NOAUTOVEC NOTRAPHANDLER"
  151.           )
  152.      )
  153. )
  154.  
  155.  
  156. ;
  157. ; Did the data extractor work?
  158. ; Check that the last file was created
  159. ;
  160. (if (<>    (getsize (tackon #JDATDIR "mansion")) 10216)
  161.     (abort "Could not create data files !")
  162. )
  163.  
  164. ;
  165. ; Delete extractor slave
  166. ;
  167. (delete
  168.     (tackon #JDESTDIR "JSWMakeDat")
  169.     (optional force)
  170. )
  171.  
  172. ;
  173. ; Copy HD drawer icon
  174. ;
  175. (copyfiles
  176.     (prompt "Copying HD drawer icon")
  177.     (help @copyfiles-help)
  178.     (source "Drawer.inf")
  179.     (newname "Jet_Set_Willy_II.info")
  180.     (dest #JROOTDIR)
  181.     (nogauge)
  182.     (optional fail force)
  183. )
  184.  
  185.  
  186. ;
  187. ; Copy HD loading bits
  188. ;
  189. (copyfiles
  190.     (prompt "Copying trainer GUI program")
  191.     (help @copyfiles-help)
  192.     (source "Jet_Set_Willy_II")
  193.     (dest #JDESTDIR)
  194.     (nogauge)
  195.     (optional fail force)
  196. )
  197.  
  198. (copyfiles
  199.     (prompt "Copying trainer GUI program icon")
  200.     (help @copyfiles-help)
  201.     (source "GUI.inf")
  202.     (newname "Jet_Set_Willy_II.info")
  203.     (dest #JDESTDIR)
  204.     (nogauge)
  205.     (optional fail force)
  206. )
  207.  
  208. (tooltype
  209.     (prompt "Setting trainer program icon tooltypes")
  210.     (dest (tackon #JDESTDIR "Jet_Set_Willy_II"))
  211.     (settooltype "GLASSES" (cat #JSTARTGLASSES))
  212. )
  213.  
  214. (if (= #JUSEGUI 1)
  215.     (tooltype
  216.         (prompt "Setting trainer program icon tooltypes")
  217.         (dest (tackon #JDESTDIR "Jet_Set_Willy_II"))
  218.         (settooltype "NOGUI" "")
  219.     )
  220. )
  221.  
  222. (if (<> 0 (IN #JDEFTRAINERS 0))
  223.     (tooltype
  224.         (prompt "Setting trainer program icon tooltypes")
  225.         (dest (tackon #JDESTDIR "Jet_Set_Willy_II"))
  226.         (settooltype "INF_LIVES" "")
  227.     )
  228. )
  229.  
  230. (if (<> 0 (IN #JDEFTRAINERS 1))
  231.     (tooltype
  232.         (prompt "Setting trainer program icon tooltypes")
  233.         (dest (tackon #JDESTDIR "Jet_Set_Willy_II"))
  234.         (settooltype "INVULNERABLE" "")
  235.     )
  236. )
  237.  
  238. (if (<> 0 (IN #JDEFTRAINERS 2))
  239.     (tooltype
  240.         (prompt "Setting trainer program icon tooltypes")
  241.         (dest (tackon #JDESTDIR "Jet_Set_Willy_II"))
  242.         (settooltype "USESAVE" "")
  243.     )
  244. )
  245.  
  246. (copyfiles
  247.     (prompt "Copying HD loader slave")
  248.     (help @copyfiles-help)
  249.     (source "JSW2HD")
  250.     (dest #JDESTDIR)
  251.     (nogauge)
  252.     (optional fail force)
  253. )
  254.